import { requestClientDon } from '#/api/request';

// 抖店类目列表
export async function checkUploaded(data: any) {
  return requestClientDon.post<any>('check_uploaded', data);
}

// 上传图片到自有服务器
export async function uploadImage(data: any) {
  return requestClientDon.post<any>('upload', data, {
    headers: {
      'Content-Type': 'multipart/form-data',
    },
  });
}

// 创建AI进程
export async function createAiProcess(data: any) {
  return requestClientDon.post<any>('img-auto-generate', data);
}
// 获取AI进程状态
export async function getAiProcessStatus(data: any) {
  return requestClientDon.post<any>('task-state', data);
}
